# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=deepin-desktop-theme
pkgver=1.0.9
pkgrel=1
pkgdesc='Theme resources for Deepin desktop environment'
arch=('any')
url="https://github.com/linuxdeepin/deepin-desktop-theme"
license=('CCPL:by-4.0')
makedepends=('cmake' 'ninja')
groups=('deepin')
source=("https://github.com/linuxdeepin/deepin-desktop-theme/archive/$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('f6930d85655299c27c9165d2c90308ed0c5217b1a0e5c9dc9168fbf6d0c145b2e33f6f4e84a27b305b8e1e88df58b8f4b4f0a7b6c7b4eab87d8357aecc9cd27a')

build() {
  cd deepin-desktop-theme-$pkgver
  cmake . -GNinja -DCMAKE_INSTALL_PREFIX=/usr
  ninja
}

package() {
  cd deepin-desktop-theme-$pkgver
  DESTDIR="$pkgdir" ninja install
}
